<template>
  <!--      导航-->
  <div class="left">
    <div class="menu">
      <el-col :span="12">
        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            active-text-color="#00cc7e"
            text-color="#666666"
        >
          <el-menu-item index="1">
            <router-link to="/tchapter">
              <el-icon><BellFilled /></el-icon>
              <span>公告</span>
            </router-link>
          </el-menu-item>
          <router-link to="/grade">
            <el-menu-item index="2">
              <el-icon><StarFilled /></el-icon>
              <span>学生成绩</span>
            </el-menu-item>
          </router-link>
          <el-menu-item index="3">
            <router-link to="/download">
              <el-icon><Management /></el-icon>
              <span>查看实验</span>
            </router-link>
          </el-menu-item>
          <router-link to="/test">
          <el-menu-item index="6">
            <el-icon><Comment /></el-icon>
            <span>提交详情</span>
          </el-menu-item>
          </router-link>
        </el-menu>
      </el-col>
    </div>
    <el-divider />
    <div class="text">
      <h3>同步与原课程：</h3>
      <p>XX学院 Python高级语言程序设计</p>
    </div>
  </div>
</template>

<script lang="ts" setup>
import {
  BellFilled,
  StarFilled,
  Management,
  Checked,
  List,
  Comment,
  Clock,
} from '@element-plus/icons-vue'
import { ref } from 'vue'
import Outline from "@/components/Outline.vue";


const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const activeIndex2 = ref('1')
const input = ref('')
const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>

<style scoped>
/*整体布局*/
.all{
  overflow-x: hidden;
  background-color: rgba(240, 242, 245, 1);
}
/*头部*/
.banner{
  background-color: #fff;
  border: 1px solid rgba(0, 21, 41, 0.12);
  padding: 10px 32px;
  /*border-radius: 20px;*/
  width: 100%;
  height: 50px;
  overflow-x: hidden;
  position: relative;
  margin-bottom: 10px;
  margin-top: -10px;
}
.banner img{
  width: 108px;
  height: 40px;
  margin-top: 5px;
  margin-right: 100px;
}
.line{
  background:#CFD3DC;/*背景色为浅灰色*/
  width:0.8px;/*设置宽高*/
  height:45px;
  position:relative;/*调整位置*/
  left: 150px;
  float:left;/*让此div与前面的并排显示*/
}
.all .banner .sname{
  margin-left: 175px;
  margin-top: -40px;
  line-height: 0.6;
}
.all .banner .sname span{
  color: #333333;
  font-size: 18px;
  font-weight: bold;
}
.all .banner .sname .type{
  background-color: #CBA265;
  border-radius: 5px;
  font-weight: normal;
  font-size: 12px;
  color: white;
  /*上右下左*/
  margin-left: 10px;
  padding: 2px 6px;
  vertical-align: middle;
}
.all .banner .sname p{
  color: #00CC7E;
  font-size: 12px;
}
.el-button.is-round{
  position: absolute;
  right: 90px;
  top: 20px;
}
/*下方*/
.middle{
  display: flex;
  /*justify-content: space-between;*/
  width: 100%;
}
.left{
  margin-top: 20px;
  background: #fff;
  width: 300px;
  border-radius: 6px;
  margin-left: 20px;
}
.menu{
  height: 250px;
}
.all .middle .left .menu .el-menu{
  width: 300px;
  border-radius: 6px;
  font-size: 14px;
}
.text{
  height: 300px;
  font-size: small;

}
.right{
  margin-top: 20px;
  background: #fff;
  width: 100%;
  border-radius: 6px;
  margin-right: 20px;
  margin-left: 20px;
}
.el-divider--horizontal{
  width: 90%;
  margin-left: 5%;
  margin-top: 10px;
}
.text{
  margin-left: 10%;
}

a {
  text-decoration: none;
  color: #666666
}
a.router-link-active{
  color: #00CC7E;
}
.router-link-active {
  text-decoration: none;
  color: #00CC7E;
}

</style>
